<layout name="layout" />

<script src="{$uri}Public/Scripts/PSI/Supplier/MainForm.js?dt={$dtFlag}"
	type="text/javascript"></script>
<script
	src="{$uri}Public/Scripts/PSI/Supplier/CategoryEditForm.js?dt={$dtFlag}"
	type="text/javascript"></script>
<script
	src="{$uri}Public/Scripts/PSI/Supplier/SupplierEditForm.js?dt={$dtFlag}"
	type="text/javascript"></script>

<!-- 关联商品 -->
<script
	src="{$uri}Public/Scripts/PSI/Goods/GoodsCategoryField.js?dt={$dtFlag}"
	type="text/javascript"></script>
<script
	src="{$uri}Public/Scripts/PSI/Supplier/GRCategoryEditForm.js?dt={$dtFlag}"
	type="text/javascript"></script>
<script
	src="{$uri}Public/Scripts/PSI/Supplier/GRGoodsEditForm.js?dt={$dtFlag}"
	type="text/javascript"></script>
<script
	src="{$uri}Public/Scripts/PSI/Goods/GoodsField.js?dt={$dtFlag}"
	type="text/javascript"></script>

<script>
	Ext.onReady(function() {
		PSI.Const.PROD_NAME = "{$productionName}";

		var app = Ext.create("PSI.App", {
			userName : "{$loginUserName}",
			productionName : "{$productionName}"
		});

		app.add(Ext.create("PSI.Supplier.MainForm", {
			pAddCategory : "{$pAddCategory}",
			pEditCategory : "{$pEditCategory}",
			pDeleteCategory : "{$pDeleteCategory}",
			pAddSupplier : "{$pAddSupplier}",
			pEditSupplier : "{$pEditSupplier}",
			pDeleteSupplier : "{$pDeleteSupplier}"
		}));
		app.setAppHeader({
			title : "{$title}",
			iconCls : "PSI-fid1004"
		});
	});
</script>